package com.authine.cloudpivot.ext.dto.kingDee.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "返回状态")
public class ResponseStatus {

    @JsonProperty("IsSuccess")
    @Schema(description = "是否成功")
    private boolean isSuccess;

    @JsonProperty("MsgCode")
    @Schema(description = "msgCode")
    private int msgCode;

    @JsonProperty("ErrorCode")
    @Schema(description = "errorCode")
    private int errorCode;

    @JsonProperty("Errors")
    @Schema(description = "errorDataList")
    private List<ErrorData> errorDataList;

    @JsonProperty("SuccessEntitys")
    @Schema(description = "successDataList")
    private List<SuccessData> successDataList;

    @JsonProperty("SuccessMessages")
    @Schema(description = "successMessages")
    private List<?> successMessages;
}
